package com.allo2o.common.mapper;

import com.allo2o.common.domain.AgentProfit;
import com.allo2o.shared.web.result.Paging;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AgentProfitMapper {
    int deleteByPrimaryKey(String serialNumber);

    int insert(AgentProfit record);

    int insertSelective(AgentProfit record);

    AgentProfit selectByPrimaryKey(String serialNumber);

    int updateByPrimaryKeySelective(AgentProfit record);

    int updateByPrimaryKey(AgentProfit record);

    List<AgentProfit> selectProfitBillsByBeneficiary(@Param("beneficiary") String beneficiary, @Param("page") Paging page);

    int deleteByBillId(String billId);
}